package com.huawei.appgallery.assistantdock.gamemode.card;

import android.content.Context;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.azc;
import o.beo$d;
import o.beo.f;
import o.bif.b;
import o.bif.d;
import o.bii;
import o.biu;
import o.biv;
import o.ContentManager;
import o.fam;

public class MsgDndEnterCardBuoy extends BuoyBaseEnterCard implements OnClickListener {
    public MsgDndEnterCardBuoy(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊ.setText(f.ˊᐝ);
        this.ॱ = bii.ˏ() == b.OPEN;
        ॱॱ();
    }

    public void ˋ() {
        this.ॱ = !this.ॱ;
        ॱॱ();
        bii.ˎ(this.ॱ ? b.OPEN : b.CLOSE);
        if (biu.ˋ().H_() && this.ॱ) {
            Context ॱ = azc.ॱ(ContentManager.getInstant().getContext());
            fam.ॱ().ॱ(ॱ, new biv(ॱ));
            biu.ˋ().ˎ();
        }
        ʻ();
        ˏ(this.ॱ ? "STATE2" : "STATE1");
    }

    void ॱॱ() {
        this.ʼ.setBackgroundResource(this.ॱ ? beo$d.ʿ : beo$d.ˈ);
    }

    String ᐝ() {
        return d.GSS_GAME_DND_MODE.ˊ();
    }
}
